<h1>所有文章</h1>
<span style="float:right;">
	<%= link_to "新建文章", new_article_path %>
</span>
<table>
	<tr>
		<th>标题</th>
		<th>正文</th>
		<th>操作</th>
	</tr>
	<% @article.each do |article| %>
	<tr>
		<td> <%= article.title %> </td>
		<td> <%= article.text %> </td>
		<td> <%= link_to '查看详情', article_path(article) %> </td>
		<td> <%= link_to '点击修改', edit_article_path(article) %> </td>
		<td> <%= link_to '删除', article_path(article), method: :delete, data: { confirm: '确定要删除吗？' } %> </td>
	</tr>
	<% end %>
</table>